package com.wxapp.system.api.pojo.vm.dict.value;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxapp.common.constant.base.IBaseRequestPage;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author lgl
 * @Description 分页
 * @Datetime 2022/12/9 9:18
 * @Modified By
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PDictValuePage extends IBaseRequestPage {
    /**
     * id 生成策略为UUID
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "id ")
    private String id;
    /**
     * 字典名称
     */
    @Schema(description = "字典名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dictName;
    /**
     * 字典value值
     */
    @Schema(description = "字典value值 ", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dictValue;
    /**
     * 权重
     */
    @Schema(description = "自定名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dictKeyName;
    /**
     * 创建时间 填充策略为插入自动填充
     */
    @Schema(description = "创建时间 ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createTime;
}
